var routerMap = {
    "app.{{module}}.{{entitySubName}}": {
        "abstract": true,
        "url": "/{{entitySubName}}",
        "template": "<div ui-view></div>",
        "deps": ["app/business/{{module}}/{{entitySubName}}/{{entitySubName}}.service.js"]
    },
    {% for page in pages %}
    "app.{{module}}.{{entitySubName}}.{{page.name}}": {
        "url": "/{{page.name}}/:ID",
        "templateUrl": "app/business/{{module}}/{{entitySubName}}/{{page.name}}.html",
        "controller": "{{page.name}}Ctrl",
        "deps": ["app/business/{{module}}/{{entitySubName}}/{{page.name}}Ctrl.js"],
        "comment": "-----{{page.name}}------"
    },
    {% endfor %}
};
var pmo = angular.module('app.pmo',[])
    .run(['$rootScope', '$state', '$stateParams', function ($rootScope,   $state,   $stateParams) {
            $rootScope.$state = $state;
            $rootScope.$stateParams = $stateParams;
    }]
)
    .config(['$stateProvider', '$urlRouterProvider', function ($stateProvider,   $urlRouterProvider) {
         AppObject.setRouter($stateProvider, routerMap); 
    }]
);